package logique.methode;


import java.util.Vector;

import logique.programme.ProgrammeLineaire;
import logique.solveur.Solveur;
import logique.solveur.SolveurInitial;
import logique.solveur.SolveurOptimisation;

public abstract class Methode {

	public Vector<ProgrammeLineaire> programmes;
	public Solveur solveur;
	public SolveurOptimisation SolverOptimisation;
	public SolveurInitial solverInitial;

	public Methode() {
		programmes = new Vector<ProgrammeLineaire>();
	}
	abstract public void optimiser();
	public ProgrammeLineaire getProgrammeLineaireInitial () {
		return programmes.get(0);
	}
	public void setProgrammeLineaireInitial (ProgrammeLineaire p) {
		if (programmes.size()>0) {
			programmes.set(0, p);
		}
		else {
			programmes.add(p);
		}
	}
}